package com.illya.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AccountDao {
    @Update("update user_account set amount = amount +#{amount} where id =#{id}")
    void cost(@Param("amount") Integer amount, @Param("id") Integer id);
}
